package com.xh.demo.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xh.demo.config.custom.CustomJsonDateDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Name User
 * @Description
 * @Author wen
 * @Date 2019-07-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UserVo {

    private Long id;

    @NotEmpty(message = "用户名不能为空;")
    private String name;

    private Integer sex;

    @NotNull(message = "时间不能为空;")
    private Date createTime;

}
